import request from "../request";
let baseURL = "http://47.122.55.127:8877";
/**
 * 获取地区列表
 * @param {Object} data 登录参数
 * @returns {Promise}
 */

export function GetAreaList(data) {
  return request.post(baseURL + "/api/patient/area/list", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

/**
 *
 * @param {Object} data 登录参数
 * @returns {Promise}
 */

export function GetOnePatient(data) {
  return request.post(baseURL + "/api/patient/one", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

export function EditPatient(data) {
  return request.post(baseURL + "/api/patient/edit", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

export function findAllActivity(data) {
  return request.post(baseURL + "/api/registration/activity/list", data, {
    loading: true,
    loadingText: "加载中...",
  });
}
